package com.jadobo.xswing.model;

import com.jadobo.xswing.attrib.HtmlElementTag;

public class Input extends AInputElement {

	public enum InputType {text, checkbox, combobox, hidden, password, button, submit }
	
	private InputType inputType;
	private String name;
	
	public Input(IElement parent, InputType inputType, String name, String value) {
		this.setParent(parent);
		this.inputType = inputType;
		this.name = name;
		this.setValue(value);
	}

	/* (non-Javadoc)
	 * @see com.jadobo.xswing.model.AElement#getHtmlElementTag()
	 */
	@Override
	public HtmlElementTag getHtmlElementTag() {
		return HtmlElementTag.input;
	}

	/**
	 * @return the inputType
	 */
	public InputType getInputType() {
		return inputType;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	
	
}
